<div id="querybox">
  <g:render template="selectOptions"/>
  <g:form name="query" controller="Query" action="query">
    <div class="label">Query:</div>
    <g:select name="element" from="${Query.getElements()}" value="${Query.element}" class="type"/>
    <div class="option-l1" >
         <g:textArea name="qtext" id="qtext" value="${Query}" class="qtext"/>
         <g:select name="neq" from="${["","not"]}" value="" class="boolean" />
         <g:select name="att" from="${[]}" class="att" />
         <g:select name="opt" from="${[]}" class="opt" />
         <g:textField name="val" class="val" />
         <g:actionSubmit value="add" action="add" class="add"/>
    </div>
    <a class="clear">clear!</a>
    <g:actionSubmit value="Show!" action="query" class="submit"/>
  </g:form>
  <div id="result-options">
    <h1 class="results">${ListLength} ${Query.element}s found</h1>
    <g:remoteLink controller="${Controller}" action="listResults" update="result" params="${[element:params.element, qtext:params.qtext, max:params.max, offset:params.offset]}" class="results" class="showProteins" >Show ${Query.element}s</g:remoteLink>
    <g:remoteLink controller="${Controller}" action="showExpressionSelection" update="result" class="results" class="showExpressionSelection" params="${[element:params.element, qtext:Query]}">Show Expression</g:remoteLink>
  </div>
  <div id="result"></div>
</div>

